package com.powernode.work.service.impl;

import com.powernode.commons.utils.ResponseData;
import com.powernode.work.dao.ContactsMapper;
import com.powernode.work.service.ContactService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ContactServiceImpl implements ContactService {
    @Autowired
    private ContactsMapper dao;

    /**
     * 根据客户的id查询联系人
     * @param customerId
     * @return
     */
    @Override
    public ResponseData findByCustomerId(String customerId) {
        return ResponseData.ok(dao.selectByCoutomerId(customerId));
    }
}
